/*
 * IndividualInfoPanel.hpp
 *
 *  Created on: 09-01-2011
 *      Author: Przemek
 */

#pragma once

#include "SingleElementInfoPanel.hpp"
#include "world/Individual.hpp"
#include "gui/Slider.hpp"

/*
 * Panel which contains info about a individual.
 */
class IndividualInfoPanel: public SingleElementInfoPanel
{
	private:
		Individual* selected;

		Slider* hungerSlider;
		Slider* thirstSlider;
		Slider* libidoSlider;
		Slider* lifeSlider;
		Slider* angleSlider;

	public:
		IndividualInfoPanel(float parentWidth, Individual* selected);
		std::string getSelectionName() const;

	protected:
		void createComponents(float parentWidth);
		const Individual* getSelected() const;
		void updateFromSelection();
};

